package scannerDemo;

import java.util.Scanner;

public class ScannerDemo {
	public static void main(String[] args) {
		Scanner scan =new Scanner(System.in);
		while(true) {
			System.out.println("请输入用户名");
			String name = scan.next();
			System.out.println("请输入密码");
			String pwd = scan.next();
			if(name.equals("QAQ") && pwd.equals("owo") ) {
				System.out.println("登入成功");
				break;
				
			}
			else {
				System.out.println("账号或密码错误请重新输入");
				
			}
		}
		
	}

}
